package com.yiren.backstage.config.bean.device;

import com.yiren.backstage.config.bean.BaseParamConfigBean;
import com.yiren.backstage.currency.bean.UserInfoBean;
import com.yiren.backstage.currency.entity.SiteEntity;

/**
 * Created by WANGRONGXIANG
 * on 2022/5/25
 * Describe 用户参数配置
 */
public class UserParamConfigBean extends BaseParamConfigBean {

    private String accessToken;       //授权令牌token
    private String refreshToken;      //刷新令牌
    private String name;              //登录账号
    private UserInfoBean userInfo;    //用户信息
    private String userDeviceInfo;    //用户设备信息
    private String userDeviceStatus;  //用户设备状态
    private boolean isPartner;        //是否是合伙人
    private boolean hasGjdInterface;  //是否有高精度设备接口
    private SiteEntity site;          //当前考场

    public static UserParamConfigBean getDefaultUserInfoConfig() {
        UserParamConfigBean userParamConfig = new UserParamConfigBean();
        userParamConfig.setAccessToken("");
        userParamConfig.setRefreshToken("");
        userParamConfig.setName("");
        userParamConfig.setUserInfo(null);
        userParamConfig.setUserDeviceInfo("");
        userParamConfig.setUserDeviceStatus("");
        userParamConfig.setPartner(false);
        userParamConfig.setHasGjdInterface(false);
        userParamConfig.setSite(null);
        return userParamConfig;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setUserInfo(UserInfoBean userInfo) {
        this.userInfo = userInfo;
    }

    public UserInfoBean getUserInfo() {
        return userInfo;
    }

    public String getUserDeviceInfo() {
        return userDeviceInfo;
    }

    public void setUserDeviceInfo(String userDeviceInfo) {
        this.userDeviceInfo = userDeviceInfo;
    }

    public String getUserDeviceStatus() {
        return userDeviceStatus;
    }

    public void setUserDeviceStatus(String userDeviceStatus) {
        this.userDeviceStatus = userDeviceStatus;
    }

    public boolean isPartner() {
        return isPartner;
    }

    public void setPartner(boolean partner) {
        isPartner = partner;
    }

    public boolean isHasGjdInterface() {
        return hasGjdInterface;
    }

    public void setHasGjdInterface(boolean hasGjdInterface) {
        this.hasGjdInterface = hasGjdInterface;
    }

    public SiteEntity getSite() {
        return site;
    }

    public void setSite(SiteEntity site) {
        this.site = site;
    }
}
